home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Linking & ODF Draw < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.7 KB  |  [TEXT/ttxt]

  1. Subject:     Linking & ODF Draw
  2. Sent:        6/3/96 4:46 AM
  3. Received:    6/3/96 9:01 AM
  4. From:        Scott, scottdfl@sprynet.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Hi,
  9.  
  10. I have been going over the ODF Draw code for the new ODF, and I am 
  11. very confused about the shape indexes used for linking. I am doing a 
  12. part analogous to a drawing part, but my "shapes" are not stored 
  13. linearly as they are in ODF Draw. Therefore, I am not basing my 
  14. content classes for the part & the selection on the same base class 
  15. as ODF Draw does, since my "shapes" are stored in a linear list in 
  16. the selection, but not in the part.
  17.  
  18. If you are still with me, my bewilderment comes in the assignment of 
  19. the indices for linking. I can not at all tell what values are 
  20. assigned to the shapes. It appears that when the part is internalized, 
  21. all the shapes get numbered from 1 to n. Then, if some shapes are 
  22. pasted in, they also get numbered from 1 to m. So, the end result is 
  23. a set of shapes numbered: 1..n, 1..m. Am I correct? I am puzzled as 
  24. to how this index should be used and assigned. Can I simply use a 
  25. unique index for each and every shape? If I do that, what 
  26. restrictions are placed on reusing that unique number on a different 
  27. shape (in the case where that shape was deleted, and a new one added 
  28. in its place)? I have read the ODF user guide in regards to linking, 
  29. but no explaination is offered as to why, only "that is the way ODF 
  30. Draw does it".
  31.  
  32. I hope my quandry is clearly enough explained for others the 
  33. understand. Any insight you can give is greatly appreciated.
  34.  
  35. Thanks
  36.  
  37. Scott Daniels
  38. e-mail: scottdfl@sprynet.com
  39. "Life appears the way you choose to see it"
  40.